package com.ruoyi.bill.service;

import com.ruoyi.bill.domain.BillCustomInvest;
import com.ruoyi.bill.domain.vo.BillCustomInvestVo;
import com.ruoyi.bill.domain.bo.BillCustomInvestBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 客户台账Service接口
 *
 * @author linziheng
 * @date 2024-02-29
 */
public interface IBillCustomInvestService {

    /**
     * 查询客户台账
     */
    BillCustomInvestVo queryById(Long id);


    /**
     * 查询客户台账列表
     */
    TableDataInfo<BillCustomInvestVo> queryPageList(BillCustomInvestBo bo, PageQuery pageQuery);

    /**
     * 查询客户台账列表
     */
    List<BillCustomInvestVo> queryList(BillCustomInvestBo bo);

    /**
     * 新增客户台账
     */
    Boolean insertByBo(BillCustomInvestBo bo);

    /**
     * 修改客户台账
     */
    Boolean updateByBo(BillCustomInvestBo bo);

    /**
     * 校验并批量删除客户台账信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Double countCurrency();

    int getWeekList(String date);

    Boolean recordByBo(BillCustomInvestBo bo);
}
